﻿<xsrc:XPropertyValueEditor x:Class="CPPEI.Coolzon.UI.XProperty.Editors.XHorizontalAlignmentEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:CPPEI.Coolzon.UI.XProperty.Editors"
             xmlns:xsrc="clr-namespace:CPPEI.Coolzon.UI.XProperty"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ObjectDataProvider x:Key="dataHorizontalAlignment" MethodName="GetValues" ObjectType="{x:Type HorizontalAlignment}">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="HorizontalAlignment"/>
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
    </UserControl.Resources>
    <Grid>
        <ComboBox Name="_ctlHorizontal" HorizontalAlignment="Left" IsEditable="False"  ItemsSource="{Binding Source={StaticResource dataHorizontalAlignment}}" SelectionChanged="HorizontalAlignment_SelectionChanged" MinWidth="120"   ></ComboBox>
    </Grid>
</xsrc:XPropertyValueEditor>
